import request from '@/utils/request'

// 查询商户排名列表
export function listMerchantRanking(query) {
  return request({
    url: '/merchantManagement/merchantRanking/list',
    method: 'get',
    params: query
  })
}

// 查询商户排名详细
export function getMerchantRanking(storeId) {
  return request({
    url: '/merchantManagement/merchantRanking/' + storeId,
    method: 'get'
  })
}

// 新增商户排名
export function addMerchantRanking(data) {
  return request({
    url: '/merchantManagement/merchantRanking',
    method: 'post',
    data: data
  })
}

// 修改商户排名
export function updateMerchantRanking(data) {
  return request({
    url: '/merchantManagement/merchantRanking',
    method: 'put',
    data: data
  })
}

// 删除商户排名
export function delMerchantRanking(storeId) {
  return request({
    url: '/merchantManagement/merchantRanking/' + storeId,
    method: 'delete'
  })
}
